home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Super Platinum 8
/
Shareware Super Platinum 8.iso
/
mac
/
PROGTOOL
/
FGL304C.ZIP;1
/
EXC.ARJ
/
FGDOC
/
EXAMPLES
/
C
/
09-02.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-01-24
|
451 b
|
25 lines
#include <fastgraf.h>
#include <stdio.h>
#include <stdlib.h>
main()
{
int mode, status;
char header[128];
status = fg_pcxhead("CORAL.PCX",header);
if (status == -1)
{
printf("Can't open CORAL.PCX.\n");
exit(1);
}
else if (status == -2)
{
printf("CORAL.PCX is not a PCX file.\n");
exit(1);
}
mode = fg_pcxmode(header);
printf("Optimal display mode is %d.\n",mode);
}